package com.example.medical.service;

import com.example.medical.entity.dto.*;
import com.example.medical.entity.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.medical.utils.common.result.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServlet;

/**
* @author 24354
* @description 针对表【user】的数据库操作Service
* @createDate 2024-03-31 22:42:32
*/
public interface UserService extends IService<User> {

    Result UserLogin(LoginDto dto);

    Result SaveUser(SaveUserDto dto);

    Result UpdateUserPassword(UpdatePasswordDto dto);

    Result UpdateUserDetail(MultipartFile file, Long divisionId, Integer sex) throws Exception;

    Result LeadershipGetUserList(LeadershipGetUserListDto dto);

    Result AdminRemoveUserArr(String[] ids);

    Result AdminUpdateUserPassword(Long id);

    Result AdminUpdateUser(Long id, String name, String nick, Long phone, Long number, MultipartFile file, Integer sex, String divisionId, String email) throws Exception;

    Result AdminSaveUser(String name, String nick, Long phone, Long number, MultipartFile file, Integer sex, Long divisionId, String email) throws Exception;
}
